import type { User } from './system'

export interface LoginPayload {
  username: string
  password: string
}

export interface LoginResult {
  access_token: string
  token_type: string
  user: User
}

export interface UserInfoResult {
  user: User
  roles?: string[]
  permissions?: string[]
}

export interface ChangePasswordPayload {
  old_password: string
  new_password: string
  confirm_password: string
}

export interface ChangePasswordResult {
  message: string
  success: boolean
}
